package com.gccloud.design.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author guo.wang
 * @date 2021-07-02
 */
@Data
@Accessors(chain = true)
@TableName("sd_api_exph_rule")
@ApiModel("异常处理策略实体类")
public class SdApiExphRuleEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * api的主键:sd_api_conf
     */
    @ApiModelProperty("api的主键:sd_api_conf")
    private Long apiId;

    /**
     * api分类 业务字典
     */
    @ApiModelProperty("api分类 业务字典")
    private Integer expReasonId;

    /**
     * handle_type（goback退单、ignore忽略、human转人工)
     */
    @ApiModelProperty("handle_type（goback退单、ignore忽略、human转人工)")
    private String handleType;

    /**
     * handle_type_name
     */
    @ApiModelProperty("handle_type_name")
    private String handleTypeName;

    /**
     * target_api_id
     */
    @ApiModelProperty("target_api_id")
    private Integer targetApiId;

    /**
     * 分库字段
     */
    @ApiModelProperty("分库字段")
    private Integer shardingId;

}
